//获取所有点

ggb.setCoords("A",1,0)
ax=ggb.getXcoord("A");
console.log(ax)


ay=ggb.getYcoord("A");

function setA(θ){
    let r= new Mat([
        [Math.cos(θ),-Math.sin(θ),0],
        [Math.sin(θ),Math.cos(θ),0],
        [0,0,1]
    ])
    let pa=new Mat([
        [ax,ay,1]
    ]).T;
    pa1= Mat.mul(r,pa)
    ggb.setCoords("A",pa1.v[0][0],pa1.v[1][0])
}

async function ming_main(){
    for (let i=0;i<11;i++){
        let θ=i*Math.PI/10;
        setA(θ)
        await  M.delayMs(10)
    }
}


ming_main()
